<template>
	<view class="transferPage">
		<!-- 中转页 -->
		<!-- #ifdef APP-PLUS -->
			<view class="status_bar"></view>  
		<!-- #endif --> 
		<view style="text-align: center;padding-top: 60rpx;">
			<view style="margin-bottom: 30rpx;">
				<u-loading mode="flower" :show="loadingShow" size='60'></u-loading>
			</view>
			<text style="font-size: 30rpx;">正在进入</text>
		</view>
	</view>
</template>

<script>
export default{
	data(){
		return{
			loadingShow:true
		}
	},
	methods:{
		routerTo(){
			if(this.$store.state.token){
				uni.switchTab({
					url:"/pages/viewPort/index"
				})
			}else{
				uni.redirectTo({
					url:"/pages/login/login"
				})
			}
		}
	},
	onLoad() {
		this.routerTo();
		
	}
}
</script>

<style scoped lang="scss">
	.transferPage{
		width: 100%;
		height:100vh;
		background-color: rgba($color: #eee, $alpha: 1);
	}
</style>
